.class Lcom/android/inputmethod/latin/CandidateView$2;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "CandidateView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/android/inputmethod/latin/CandidateView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/android/inputmethod/latin/CandidateView;


# direct methods
.method constructor <init>(Lcom/android/inputmethod/latin/CandidateView;)V
    .locals 0
    .parameter

    .prologue
    .line 167
    iput-object p1, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 5
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    const/4 v4, 0x1

    .line 169
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-virtual {v2}, Lcom/android/inputmethod/latin/CandidateView;->getWidth()I

    move-result v1

    .line 170
    .local v1, width:I
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-static {v2, v4}, Lcom/android/inputmethod/latin/CandidateView;->access$302(Lcom/android/inputmethod/latin/CandidateView;Z)Z

    .line 171
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-virtual {v2}, Lcom/android/inputmethod/latin/CandidateView;->getScrollX()I

    move-result v0

    .line 172
    .local v0, scrollX:I
    float-to-int v2, p3

    add-int/2addr v0, v2

    .line 173
    if-gez v0, :cond_0

    .line 174
    const/4 v0, 0x0

    .line 176
    :cond_0
    const/4 v2, 0x0

    cmpl-float v2, p3, v2

    if-lez v2, :cond_1

    add-int v2, v0, v1

    iget-object v3, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-static {v3}, Lcom/android/inputmethod/latin/CandidateView;->access$400(Lcom/android/inputmethod/latin/CandidateView;)I

    move-result v3

    if-le v2, v3, :cond_1

    .line 177
    float-to-int v2, p3

    sub-int/2addr v0, v2

    .line 179
    :cond_1
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-static {v2, v0}, Lcom/android/inputmethod/latin/CandidateView;->access$502(Lcom/android/inputmethod/latin/CandidateView;I)I

    .line 180
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    iget-object v3, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-virtual {v3}, Lcom/android/inputmethod/latin/CandidateView;->getScrollY()I

    move-result v3

    invoke-virtual {v2, v0, v3}, Lcom/android/inputmethod/latin/CandidateView;->scrollTo(II)V

    .line 181
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    const/16 v3, 0x3c

    invoke-static {v2, v3}, Lcom/android/inputmethod/latin/CandidateView;->access$600(Lcom/android/inputmethod/latin/CandidateView;I)V

    .line 182
    iget-object v2, p0, Lcom/android/inputmethod/latin/CandidateView$2;->this$0:Lcom/android/inputmethod/latin/CandidateView;

    invoke-virtual {v2}, Lcom/android/inputmethod/latin/CandidateView;->invalidate()V

    .line 183
    return v4
.end method
